//2009/08/14 18:16:50
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class WaiterTipping
{
public:
    int maxPercent(int total, int tax, int money)
    {
		int ret = -1;
		for(int i=0; ;i++)
		{
			if(total + (int)(total*tax/100) + (int)(total * i /100) <= money) ret = i;
			else break;
		}
		return ret;
    }
};
